<?php

class User {

    private $_id, $_nom, $_prenom, $_login, $_mdp, $_email, $_dateNaissance, $_estAdmin,  $_panier;

    

    public function __construct($id, $nom, $prenom, $log, $mdp, $mail, $dateNaissa, $estAdmin, $panier){

        $this->_id = $id;
        $this->_nom = $nom;
        $this->_prenom = $prenom;
        $this->_login = $log;
        $this->_mdp = $mdp;
        $this->_email = $mail;
        $this->_dateNaissance = $dateNaissa;
        $this->_estAdmin = $estAdmin;
        $this->_panier = $panier;
    }
    



    public function getId(){return $this->_id ;}
    public function getNom(){return $this->_nom ;}
    public function getPrenom(){return $this->_prenom ;}
    public function getLogin(){return $this->_login ;}
    public function getMdp(){return $this->_mdp ;}
    public function getEmail(){return $this->_email ;}
    public function getDateNaissance(){return $this->_dateNaissance ;}
    public function estAdmin(){return $this->_estAdmin ;}
    public function getPanier(){return $this->_panier;}
    
    
    public function setId($id){$this->_id = $id;}
    public function setNom($nom){ $this->_nom = $nom;}
    public function setPrenom($prenom){ $this->_prenom = $prenom;}
    public function setLogin($log){ $this->_login = $log;}
    public function setMdp($mdp){ $this->_mdp = $mdp;}
    public function setEmail($mail){ $this->_email = $mail ;}
    public function setDateNaissance($date){ $this->_dateNaissance = $date ;}
    public function setDroitAdmin($estAdmin){ $this->_estAdmin = $estAdmin;}
    public function setPanier($panier){ $this->_panier = $panier;}
    
    
    

    
}

?>
